package com.rain.cy.business.model.dto;

import com.rain.cy.business.model.entity.UserEntity;
import com.rain.cy.business.model.entity.UserFeedbackEntity;
import lombok.Data;

/**
 * @author yu_chen
 * @since 2021/10/7 20:40
 */
@Data
public class UserFeedbackDTO {

    private UserEntity userEntity;

    private UserFeedbackEntity userFeedbackEntity;


    public static UserFeedbackDTO of(UserEntity userEntity, UserFeedbackEntity userFeedbackEntity) {
        UserFeedbackDTO userFeedbackDTO = new UserFeedbackDTO();
        userFeedbackDTO.setUserEntity(userEntity);
        userFeedbackDTO.setUserFeedbackEntity(userFeedbackEntity);
        return userFeedbackDTO;
    }

}
